<?php defined('BASEPATH') OR exit('No direct script access allowed');?>

<!-- +++++ Blog Edit +++++ -->

<div class="pink">
    <div class="container">
        <div class="row">

            <!-- +++++ 面包屑导航 +++++ -->
            <div class="col-lg-12">
                <ol class="my-breadcrumb">
                    <li><a href="/admin/contact">联系管理</a></li>
                    <li class="active">查看详情</li>
                </ol>
            </div>

            <div class="col-lg-12">
                <div class="my-well">
                    <div class="table-responsive">
                        <table class="table">
                            <tr>
                                <td>姓名</td>
                                <td><?=$contact['name']?></td>
                            </tr>
                            <tr>
                                <td>邮箱</td>
                                <td><?=$contact['email']?></td>
                            </tr>
                            <tr>
                                <td>标题</td>
                                <td><?=$contact['title']?></td>
                            </tr>
                            <tr>
                                <td>正文</td>
                                <td><?=$contact['content']?></td>
                            </tr>
                            <tr>
                                <td>操作</td>
                                <td>
                                    <a class="btn btn-danger"
                                       href="/admin/contact/update/<?=$contact['id']?>"
                                       <?php if($contact['flag'] == 1){echo 'disabled="disabled"';}?>>已读</a>&nbsp;
                                    <a class="btn btn-danger"
                                       href="/admin/contact/del/<?=$contact['id']?>">删除</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>

        </div><!-- /row -->
    </div> <!-- /container -->
</div><!-- /white -->